import service from '@/utils/request'

const HornApi = {
  // ---------------云喇叭----------------
  addHorn: function (data) {
    return service.post('horn', data)
  },
  deleteHorn: function (data) {
    return service.put('horn/delete', data)
  },
  editHorn: function (data) {
    return service.put('horn', data)
  },
  listHorn: function (data) {
    return service.get('horn/page', {params: data })
  },
  getHornInfo: function (data) {
    return service.get('horn', {params: data })
  },
  activeEquip:function(data){
    return service.get("horn/active",{params:data})
  },
}

export default HornApi